home *** CD-ROM | disk | FTP | other *** search
- /*class used*/
- class Cell
- {
- private:
-
- int color;
- int cx;
- int cy;
- int r;
- int r_temp;
- int ID;
- float distance;
- BOOL update;
-
- public:
-
- Cell();
- ~Cell();
- void set_color(int);
- void set_cx(int);
- void set_cy(int);
- void set_r(int);
- void set_r_temp(int);
- void set_ID(int);
- void set_distance(float);
- void set_update(BOOL);
- int get_color() const;
- int get_cx() const;
- int get_cy() const;
- int get_r() const;
- int get_r_temp() const;
- int get_ID() const;
- float get_distance() const;
- BOOL get_update() const;
- };
-
- Cell::Cell()
- {
- color=1;
- cx=0;
- cy=0;
- r=0;
- r_temp=0;
- ID=0;
- distance=0.0;
- update=FALSE;
- }
-
- Cell::~Cell()
- {
- }
-
- void Cell::set_color(int stuff)
- {
- color=stuff;
- }
-
- void Cell::set_cx(int stuff)
- {
- cx=stuff;
- }
-
- void Cell::set_cy(int stuff)
- {
- cy=stuff;
- }
-
- void Cell::set_r(int stuff)
- {
- r=stuff;
- }
-
- void Cell::set_r_temp(int stuff)
- {
- r_temp=stuff;
- }
-
- void Cell::set_ID(int stuff)
- {
- ID=stuff;
- }
-
- void Cell::set_distance(float stuff)
- {
- distance=stuff;
- }
-
- void Cell::set_update(BOOL stuff)
- {
- update=stuff;
- }
-
- int Cell::get_color() const
- {
- return color;
- }
-
- int Cell::get_cx() const
- {
- return cx;
- }
-
- int Cell::get_cy() const
- {
- return cy;
- }
-
- int Cell::get_r() const
- {
- return r;
- }
-
- int Cell::get_r_temp() const
- {
- return r_temp;
- }
-
- int Cell::get_ID() const
- {
- return ID;
- }
-
- float Cell::get_distance() const
- {
- return distance;
- }
-
- BOOL Cell::get_update() const
- {
- return update;
- }
-